<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\BaseController;
use Illuminate\Support\Facades\Storage;

class OssController extends BaseController
{
    /**
     * 生成oss上传token
     */
    public function token(){
        $disk = Storage::disk('oss');
        $config = json_decode($disk->signatureConfig($prefix='/',$callBackUrl='',$customData=[],$expire=300),true);
        return $this->response->array($config);
    }
}
